#!/bin/bash

set -e

echo "19low" >> /home/nvidia/HYSD_shell/systemShell.log 2>&1
gpiopath="/sys/class/gpio/gpio19"
direction=${gpiopath}"/direction"
value=${gpiopath}"/value"
data=0

if [ -d ${gpiopath} ]; then
    echo 19 > /sys/class/gpio/unexport
fi;
echo 19 > /sys/class/gpio/export
echo out > ${direction}

echo 0 > ${value}
data=$(cat ${value})

